import { TransPack } from "../../server/framework/common/TransPack";
import { DebugInject } from "./DebugInject";

export class BaseInjectHandler {

    public owner: DebugInject;

    public msgId: number;

    constructor(owner: DebugInject) {
        this.owner = owner;
        this.Init();
    }

    public Init() {
        this._OnInit();
    }

    protected _OnInit() {

    }

    public HandleMsg(pack: TransPack) {
        this._OnHandleMsg(pack);
    }

    protected _OnHandleMsg(pack: TransPack) {

    }

}